<?php

namespace Fluency\Routing;

/**
 * @package Fluency\Routing
 * @author  Ignas Rudaitis
 * @version 2.0.0
 */
interface Router
{
    /**
     * If a Fluency\Request can be generated for the given string, it is returned. Otherwise this
     * method returns NULL.
     *
     * @param string $url
     * @return Fluency\Request|null
     */
    public function createRequest($url);

    /**
     *
     */
    public function createUrl($action, array $params = array());
}
